<template>
  <div>
    <Suspense>
      <router-view v-slot="{ Component }">
        <component :is="Component"></component>
      </router-view>
    </Suspense>
  </div>
</template>
<script setup lang="ts">
import * as PIXI from 'pixi.js'
import 'pixi.js/unsafe-eval'
import gsap from 'gsap'
import { PixiPlugin } from 'gsap/PixiPlugin'

gsap.registerPlugin(PixiPlugin) // 注册插件
PixiPlugin.registerPIXI(PIXI) // 给插件提供PIXI的引用
</script>
